<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>"添加分类"</title>
    <script type="text/javascript">
        function checkLength(){
            //确定输入的长度
            var domSpecie = document.getElementById("specie").value;
            if(domSpecie == ''){
                alert("输入不能为空！");
            }
        }
    </script>
</head>
<body>
    <form  action="/hexu/specie/add" method="get">
      文章分类
      <input type="text" name="specie" id="specie"/>
      <input type="submit" value="添加" onclick="checkLength()"/>
      <input type="reset" />
    </form>
</body>
</html>